const express = require("express");
const router = express.Router();
const mongoose = require("mongoose");
const request = require("request");
import * as config from "../../config";
const rp = require("request-promise");
import jar from "../toughCookie";
const Cookie = require("tough-cookie").Cookie;
import r from "../r";

// import m from "../models/User";
import _ from "lodash";
import { Request, Response } from "express";
import { NextFunction } from "express-serve-static-core";
import efetch from "../efetch";

router.get("/", async function(
  req: Request,
  res: Response,
  next: NextFunction
) {
  // const newurl = "http://api.zqd.com/config";
  // const ret = await r(
  //   {
  //     method: "GET",
  //     url: newurl
  //   },
  //   req,
  //   res
  // );
  // const jsonRet = JSON.parse(ret.body);
  // res.json(jsonRet);
  res.json({});
});

export default router;
